// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContractException.cs" company="">
//   
// </copyright>
// <summary>
//   The contract exception.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Core
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    ///   The contract exception.
    /// </summary>
    [Serializable]
    public class ContractException : BaseException
    {
        #region Constructors and Destructors

        /// <summary>
        ///   Initializes a new instance of the <see cref="ContractException" /> class.
        /// </summary>
        public ContractException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ContractException"/> class.
        /// </summary>
        /// <param name="message">
        /// The message. 
        /// </param>
        public ContractException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ContractException"/> class.
        /// </summary>
        /// <param name="message">
        /// The message. 
        /// </param>
        /// <param name="innerException">
        /// The inner exception. 
        /// </param>
        public ContractException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ContractException"/> class.
        /// </summary>
        /// <param name="info">
        /// The info. 
        /// </param>
        /// <param name="context">
        /// The context. 
        /// </param>
        protected ContractException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        #endregion
    }
}